package com.knight.admin.controller;

import java.util.List;

import com.jfinal.core.Controller;
import com.knight.admin.model.Menu;
import com.knight.admin.service.MenuService;

/**
 * 菜单维护页面
 * 
 * @author YQ
 *
 */
public class MenuController extends Controller {

	private static MenuService menuService = MenuService.getInstance();

	public void parentMenu() {
		List<Menu> menus = menuService.findParentMenu();
		setAttr("menus", menus);
		render("menu/menu.html");
	}
}
